package com.huahua.api.processor;

import com.huahua.api.entity.pojo.ApiNovelBook;
import com.huahua.api.entity.pojo.ApiNovelBookContent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2021年09月20日 10:24
 * @description believe in yourself
 */
@Component
public class NovelPostProcessorExecutor {
    @Autowired
    List<NovelPostProcessor> postProcessors;

    public void execute(ApiNovelBookContent bookContent){
        for (NovelPostProcessor postProcessor : postProcessors) {
            postProcessor.post(bookContent);
        }
    }

}
